package com.wuze.TCC.service;

import com.wuze.TCC.annotation.TCC;

import java.lang.reflect.Method;
import java.sql.SQLException;


/**
 * TCC事务管理器接口
 * @author wuze
 */
public interface TCCManager {


    public void doTry(String transId , TCC annotation , Object traget , Method method , Object[] args) throws SQLException, InterruptedException;

    public void doComfirm(String transId , TCC annotation , Object traget , Method method , Object[] args) throws SQLException;

    public void doCancel(String transId , TCC annotation , Object traget , Method method , Object[] args) throws SQLException;


}
